Stock analysis tools Loading Data: Yahoo Finance (via our server, may be delayed)

🛤️ Stock Supertrend

Draws Supertrend (ATR 10, factor 3 by default) on stock, ETF and index charts: flips on closed bars, distance to the trailing line, and past flip history with statistics. Yahoo data. Not advice.

ATR period Factor
–

–

Loading…

Current state

Direction from closed bars
Price–
Trend–
Supertrend line–
Since the flip–
ATR–
–

Flip history

Flips–
Up-trends that ended higher–
Avg. up-trend move–
Avg. down-trend move–
Followed mechanically (long only)–
Flip time Direction Flip price (close) To next flip Max run Length
Loading

Only closed bars are counted (the bar still forming during the session is left out). The first (ATR period × 5) bars are a warm-up while ATR settles and are excluded. Max run is the furthest price travelled in the trend's direction during the segment (highs for up-trends, lows for down-trends). 'Followed mechanically' assumes buying at the open of the bar after a bullish flip and selling at the open of the bar after a bearish flip, minus 0.1% per fill (the same assumption as the crypto version; real commissions and taxes differ by market and broker). It is a past result, not a forecast. Tap a time to jump the chart there. The formulas are the same as the crypto Supertrend tool (TradingView's built-in formula); the crypto version's top-volume scanner is left out. Prices come from Yahoo Finance via our server and are re-read every 60 seconds while the market is open, every 10 minutes after the close.

Unfamiliar term? → Crypto & Stock Glossary

For information only, not investment advice. Prices come from Yahoo Finance via our server and may be delayed 15–20 minutes or more depending on the exchange, or interrupted. Charts: TradingView Lightweight Charts™

What this tool does

Supertrend is an indicator that uses a single ATR-based trailing line to show whether the trend is up or down. A close beyond the line flips the direction, and while the trend lasts the line follows price like a trailing stop. This tool draws Supertrend on Korean, US and Japanese stocks, ETFs and indices and shows the flips on closed bars, the distance to the line, and the symbol's past flip history with statistics. It is the stock version of the crypto Supertrend tool, with the same formulas and prices from Yahoo Finance. The crypto version's top-volume scanner is left out; this page looks at one symbol you pick.

How it is calculated

ATR averages TR (the largest of high − low, |high − previous close| and |low − previous close|) with Wilder's method (RMA, first value a simple average); the period is 7, 10 or 14 (default 10). The basic bands are (high + low)/2 ± factor × ATR with a factor of 2, 3 or 4 (default 3). For example, with high 105, low 95, ATR 2 and factor 3 the basic bands are 100 ± 6, i.e. 106 and 94. The lower band only changes when the new value is higher or the previous close fell below it, otherwise it keeps its previous value; the upper band works the other way. In a down-trend a close above the upper band is a bullish flip; in an up-trend a close below the lower band is a bearish flip. The line is the lower band in an up-trend and the upper band in a down-trend (TradingView's built-in Supertrend formula, the crypto version's XC.ta.supertrend unchanged). The first (ATR period × 5) bars are a warm-up and are excluded, and flips and statistics count closed bars only (the bar forming during the session is left out). Segment move = close of the next flip bar ÷ close of the flip bar − 1. 'Followed mechanically' is long only: buy at the open of the bar after a bullish flip, sell at the open of the bar after a bearish flip, minus 0.1% per fill (the crypto version's assumption; real costs may differ). Prices come from Yahoo Finance through our server's shared cache (/api/market/chart) and are re-read every 60 seconds while the market is open or within 45 minutes of the close, otherwise every 10 minutes, and 30 seconds after a busy-server (503) reply. Timeframes and ranges: 15m 5 days or 1 month (default 1 month), 1H 1, 3, 6 months or 1 year (default 6 months), 1D 6 months, 1, 2 or 5 years (default 2 years), 1W 2, 5 or 10 years (default 10 years).

Reading the screen

Top bar

Symbol, timeframe, range, ATR period and factor. Changing symbol, timeframe or range reloads the bars; ATR period and factor recalculate instantly from the bars already loaded. The choices are kept in the address bar, so the link opens the same view.

Line under the name: market status and time

Shows 'Market open' or 'Market closed', the last quote time (exchange local time and city) and, for Korean and Japanese symbols, '~20 min delay'. When the market is closed the status at the top reads 'Market closed · last quote' instead of live; if an update fails it shows 'Update failed · last updated' and reloads as soon as the connection is back.

Chart: trend line, flips, pending flip

The Supertrend line is drawn separately for each trend segment: below price in the up colour for up-trends, above price in the down colour for down-trends, starting fresh at each flip bar. Flips on closed bars get a 'Bullish flip' or 'Bearish flip' dot; if the bar forming during the session is already on the other side of the line, an accent dot shows 'Pending flip'. The dashed 'ST' on the price scale is the line's value on the last bar. No line is drawn during the first (ATR period × 5) warm-up bars.

Current state

The five boxes are the price, the trend (direction on the last closed bar and bars since the flip), the Supertrend line (distance from price and in multiples of ATR), the move since the flip (from the flip-bar close to the price) and ATR (as % of price). The sentence below restates these; it compares the current segment's length with the average past segment in the same direction only when at least three have finished.

Flip history

Shows the number of flips, the share of finished up-trends that ended higher, the average up- and down-trend moves, and the result of following the flips mechanically (with buy & hold over the same period, closed trades, win rate and max drawdown). The table lists each flip's time, direction, flip price, move to the next flip, max run and length, newest first. All of this is a past result over the loaded range, not a forecast. Tap a time to move the chart there.

Things to know

Frequently asked questions

Is the calculation different from the crypto version?

The Supertrend formula, warm-up, closed-bar rule, segment statistics and the mechanical-follow calculation (0.1% per fill) are the same. The differences are the data (Yahoo Finance over the chosen range instead of Binance's latest 1,000 bars), no 4-hour timeframe and no top-volume scanner.

Should I use the Supertrend line as my stop-loss?

This tool calculates the line and its distance and shows them; it does not recommend any price to buy or sell at. Flips are judged on closes, so briefly crossing the line during the session and coming back does not count as a flip.

The line differs slightly from my broker's chart.

ATR is a running average, so a different first bar changes the early values; the difference shrinks as bars accumulate, which is why the first (ATR period × 5) bars are left out. Yahoo quotes for Korean and Japanese shares are about 20 minutes late, and the shared server cache can make 15-minute and hourly data up to 1 minute old, daily up to 5 minutes and weekly up to 1 hour.

What does 'Followed mechanically' mean?

It calculates what would have happened over the loaded range by buying at the open of the bar after each bullish flip and selling at the open of the bar after each bearish flip, deducting 0.1% per fill. Real commissions, taxes and fills may differ, and one pass over past data says nothing about future results.

For information only, not investment advice. The Supertrend direction and flip statistics are calculations on past prices and do not forecast prices. Prices come from Yahoo Finance via our server and may be delayed or interrupted.

📚 Worth reading
🚥How to Read Supertrend: The ATR Trailing Line and Its Flaws→ 🌱Dividend Growth Stocks: Growth Rate, Raises and Yield→ 🧺Dollar-Cost Averaging (DCA): How It Works and Its Limits→ ⚖️Rebalancing: Calendar Versus Band Methods→
← All stock tools